﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_settlement.Pays
{
    /// <summary>
    /// 应付费管理
    /// </summary>
    public class TMS_Pay : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 业务单位
        /// </summary>
        [Required(ErrorMessage = ("业务单位不能为空"))]
        [StringLength(20)]
        public string Pay_Number { get; set; }
        /// <summary>
        /// 外协单位
        /// </summary>
        [Required(ErrorMessage = ("外协单位不能为空"))]
        [StringLength(20)]
        public string Pay_Company { get; set; }
        /// <summary>
        /// 结算方式
        /// </summary>
        [Required(ErrorMessage = ("结算方式不能为空"))]
        [StringLength(20)]
        public string Pay_Settlement { get; set; }
        /// <summary>
        /// 吨位
        /// </summary>
        [Required(ErrorMessage = ("吨位不能为空"))]
        public decimal Pay_Tonnage { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        [Required(ErrorMessage = ("单价不能为空"))]
        public decimal Pay_Price { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Required(ErrorMessage = ("金额不能为空"))]
        public decimal Pay_Amount { get; set; }
        /// <summary>
        /// 业务日期
        /// </summary>
        [Required(ErrorMessage = ("业务日期不能为空"))]
        public DateTime Pay_Date { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        [Required(ErrorMessage = ("经办人不能为空"))]
        [StringLength(20)]
        public string Pay_Agent { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(100)]
        public string Pay_Note { get; set; }
        /// <summary>
        /// 核对状态
        /// </summary>
        public bool Pay_CheckState { get; set; } = false;
        /// <summary>
        /// 核对人
        /// </summary>
        [StringLength(150)]
        public string Pay_CheckPeople { get; set; }
        /// <summary>
        /// 核对日期
        /// </summary>
        public DateTime Pay_CheckDate { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool Pay_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Pay_DateTime { get; set; } = DateTime.Now;
    }
}
